home *** CD-ROM | disk | FTP | other *** search
/ Champak 40 / Vol 40.iso / games / whomp.swf / scripts / frame_10 / DoAction.as
Encoding:
Text File  |  2007-04-20  |  1.1 KB  |  57 lines

  1. setMenuParams();
  2. setNewNav();
  3. playBTN.onRollOver = function()
  4. {
  5.    playGameMC.gotoAndPlay("on");
  6. };
  7. playBTN.onRollOut = function()
  8. {
  9.    playGameMC.gotoAndPlay("turnOff");
  10. };
  11. highBTN.onRollOver = function()
  12. {
  13.    hiScoresMC.gotoAndPlay("on");
  14. };
  15. highBTN.onRollOut = function()
  16. {
  17.    hiScoresMC.gotoAndPlay("turnOff");
  18. };
  19. helpBTN.onRollOver = function()
  20. {
  21.    instructMC.gotoAndPlay("on");
  22. };
  23. helpBTN.onRollOut = function()
  24. {
  25.    instructMC.gotoAndPlay("turnOff");
  26. };
  27. tellBTN.onRollOver = function()
  28. {
  29.    tellFriendMC.gotoAndPlay("on");
  30. };
  31. tellBTN.onRollOut = function()
  32. {
  33.    tellFriendMC.gotoAndPlay("turnOff");
  34. };
  35. playBTN.onRelease = function()
  36. {
  37.    _root.section = 5;
  38.    gotoAndPlay(_root._currentFrame + 1);
  39. };
  40. highBTN.onRelease = function()
  41. {
  42.    _root.section = 9;
  43.    gotoAndPlay(_root._currentFrame + 1);
  44. };
  45. helpBTN.onRelease = function()
  46. {
  47.    _root.section = 2;
  48.    gotoAndPlay(_root._currentFrame + 1);
  49. };
  50. tellBTN.onRelease = function()
  51. {
  52.    var _loc1_ = "javascript:openTellAFriendWindow(\'" + home.tellURL + "\',450,650)";
  53.    getURL(_loc1_,"");
  54. };
  55. Key.addListener(menuKey);
  56. stop();
  57.